namespace NSFactory {
    export class ShapeMaker {
        public static maker(type: string): IShape {
            switch (type) {
                case 'Rectangle':
                    return new Rectangle();
                case 'Circle':
                    return new Circle();
                default:
                    return null;
            }
        }
    }
}
